package com.jfeat.am.module.wegou.services.crud.service.impl;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jfeat.am.common.crud.impl.CRUDServiceGroupImpl;
import com.jfeat.am.module.wegou.services.crud.service.ProductTypeService;
import com.jfeat.am.module.wegou.services.persistence.dao.ProductTypeMapper;
import com.jfeat.am.module.wegou.services.persistence.model.ProductType;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 产品类别表 implementation
 * </p>
 *
 * @author Code Generator
 * @since 2018-01-03
 */
@Service
public class ProductTypeServiceImpl extends CRUDServiceGroupImpl<ProductType> implements ProductTypeService {


    @Resource
    private ProductTypeMapper productTypeMapper;


    @Override
    protected BaseMapper<ProductType> getGroupMapper() {
        return productTypeMapper;
    }

    @Override
    public ProductType getById(Long id) {
        return productTypeMapper.selectById(id);
    }
}


